package cn.vic.enums;

import javax.swing.*;

import static cn.vic.util.ImageUtil.createImageIcon;

/**
 * Created by vic on 2017/8/14.
 */
public enum ViewTypeEnum {

    HOST("HOST", createImageIcon("icon/cloudHost.png")),
    DATABASE("DATABASE", createImageIcon("icon/database.png")),
    FOLADER("FOLADER", createImageIcon("icon/folder.png")),
    TABLE("TABLE", createImageIcon("icon/table.png")),
    VIEW("TABLE", createImageIcon("icon/view.png"));

    ViewTypeEnum(String type, ImageIcon icon) {
        this.type = type;
        this.imageIcon = icon;
    }

    private String type;
    private ImageIcon imageIcon;

    public ImageIcon getImageIcon() {
        return imageIcon;
    }

    public String getType() {
        return type;
    }
}
